<html>
	<head>
	<title>Horaire {{horaire.uf.num_adm}} ({{horaire.organisation}})</title>
	<style type="text/css">
		td {
		 padding : 5px;
		}
	</style>
	</head>
	<body>
	<table>
		<tr>
			<td colspan="8" style="text-align:center;border:solid black 1px;"><h2>&Eacute;cole Industrielle et Commerciale d'Auvelais</h2></td>
		</tr>
		<tr>
			<td colspan = "8" style="text-align:center;"><i><span style="font-weight:bold;">Lieu de formation&nbsp;:&nbsp;</span>rue Hicguet 19, 5060 AUVELAIS</i></td>
		</tr>
		<tr>
			<td style="text-align:right;"><span style="font-weight:bold;">Num&eacute;ro administratif&nbsp;:&nbsp;</span></td>
			<td style="font-size:1.2em;font-weight:bold;">{{ horaire.uf.num_adm }}</td>
			<td style="text-align:right;"><span style="font-weight:bold;">Ann&eacute;e scolaire&nbsp;:&nbsp;</span></td>
			<td>20{{ horaire.annee_scolaire|slice:":2" }}-20{{ horaire.annee_scolaire|slice:"3:" }}</td>
			<td style="text-align:right;"><span style="font-weight:bold;">Organisation&nbsp;:&nbsp;</span></td>
			<td>{{ horaire.organisation }}</td>
			<td style="text-align:right;"><span style="font-weight:bold;">Admission subvention&nbsp;:&nbsp;</span></td>
			<td>{% if horaire.uf.ad_dd %}AD{% elif horaire.uf.ap_dd %}IA{% else %}NI{% endif %}</td>
		</tr>
		<tr>
			<td style="text-align:center;"><span style="font-weight:bold;">Libell&eacute;&nbsp;:&nbsp;</span></td>
			<td colspan="7">{{ horaire.uf.libelle }}</td>
		</tr>
		<tr>
			<td style="text-align:right;"><span style="font-weight:bold;">Code UF&nbsp;:&nbsp;</span></td>
			<td>{{ horaire.uf.code }}</td>
			<td>&nbsp;</td>
			<td style="text-align:right;"><span style="font-weight:bold;">Inspecteur&nbsp;:&nbsp;</span></td>
			<td>{{ horaire.uf.inspecteur }}</td>
			<td>&nbsp;</td>
			<td style="text-align:right;"><span style="font-weight:bold;">Niveau&nbsp;:&nbsp;</span></td>
			<td>{{ horaire.uf.niveau }}</td>
		</tr>
		<tr>
			<td style="text-align:right;"><span style="font-weight:bold;">D&eacute;but&nbsp;:&nbsp;</span></td>
			<td>{{ horaire.plagehoraire_set.all.0.jour }}</td>
			<td style="text-align:right;"><span style="font-weight:bold;">Premier dixi&egrave;me&nbsp;:&nbsp;</span></td>
			<td>{{ horaire.premier_dixieme }}</td>
			<td style="text-align:right;"><span style="font-weight:bold;">Cinqui&egrave;me dixi&egrave;me&nbsp;:&nbsp;</span></td>
			<td>{{ horaire.cinquieme_dixieme }}</td>
			<td style="text-align:right;"><span style="font-weight:bold;">Fin&nbsp;:&nbsp;</span></td>
			<td>{{ horaire.plagehoraire_set.all.reverse.0.jour }}</td>
		</tr>		
	</table>
	</br>
	<table border="1px">
		<thead>
		<tr style="font-weight:bold;">
			<td>Jour</td>
			<td>date</td>
			<td>Heure de d&eacute;but</td>
			<td>Heure de fin</td>
			<td>Cat&eacute;gorie</td>
			<td>Activit&eacute; d'enseignement</td>
			<td>Professeur</td>
			<td>P&eacute;riodes</td>
		</tr>
		</thead>
		<tbody>
		{% for plage_horaire in horaire.plagehoraire_set.all %}
		<tr>
			<td>{{ plage_horaire.jour|date:"l" }}</td>
			<td>{{ plage_horaire.jour|date:"d/m/Y" }}</td>
			<td>{{ plage_horaire.heure_debut }}</td>
			<td>{{ plage_horaire.heure_fin }}</td>
			<td>{{ plage_horaire.activite_enseignement.activite.categorie }}</td>
			<td>{{ plage_horaire.activite_enseignement.activite.libelle }}</td>
			<td>{{ plage_horaire.activite_enseignement.professeur }}</td>
			<td>{{ plage_horaire.periodes }}</td>
		</tr>
		{% endfor %}
		<tr>
			<td colspan="7" style="text-align:left;"><span style="font-weight:bold;">P&eacute;riodes&nbsp;:&nbsp;</span></td>
			<td>{{ horaire.uf.periodes }}</td>
		</tr>
		</tbody>
	</table>
	
	
	
	</body>
</html>